Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes http endpoint being overwritten by gRPC address argument in constructor #621

Merged
merged 4 commits into from
Oct 31, 2023

Conversation

elena-kolevska
Copy link
Contributor

@elena-kolevska elena-kolevska commented Oct 18, 2023

Description

Fixes http endpoint being overwritten by gRPC address argument in constructor.

Issue reference

#620

Checklist

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation

@elena-kolevska elena-kolevska changed the base branch from master to release-1.11 October 18, 2023 17:44
Signed-off-by: Elena Kolevska <[email protected]>
@elena-kolevska elena-kolevska changed the title Fix http address Fixes http endpoint being overwritten by address argument in constructor Oct 18, 2023
@elena-kolevska elena-kolevska changed the title Fixes http endpoint being overwritten by address argument in constructor Fixes http endpoint being overwritten by gRPC address argument in constructor Oct 18, 2023
@codecov
Copy link

codecov bot commented Oct 18, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ No coverage uploaded for pull request base (release-1.11@ff08864). Click here to learn what that means.

❗ Current head 4b85bef differs from pull request most recent head 743810c. Consider uploading reports for the commit 743810c to get more accurate results

Additional details and impacted files
@@               Coverage Diff               @@
##             release-1.11     #621   +/-   ##
===============================================
  Coverage                ?   86.41%           
===============================================
  Files                   ?       74           
  Lines                   ?     3592           
  Branches                ?        0           
===============================================
  Hits                    ?     3104           
  Misses                  ?      488           
  Partials                ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@elena-kolevska elena-kolevska marked this pull request as ready for review October 18, 2023 17:54
@elena-kolevska elena-kolevska requested review from a team as code owners October 18, 2023 17:54
@berndverst berndverst merged commit 4748755 into dapr:release-1.11 Oct 31, 2023
10 checks passed
elena-kolevska added a commit to elena-kolevska/python-sdk that referenced this pull request Feb 7, 2024
…structor (dapr#621)

* Fixes bug of constructor argument being used as http endpoint

Signed-off-by: Elena Kolevska <[email protected]>

* Updates tests

Signed-off-by: Elena Kolevska <[email protected]>

* Updates the docs explaining how http service invocation should be configured

Signed-off-by: Elena Kolevska <[email protected]>

* Update daprdocs/content/en/python-sdk-docs/python-client.md

Signed-off-by: Bernd Verst <[email protected]>

---------

Signed-off-by: Elena Kolevska <[email protected]>
Signed-off-by: Bernd Verst <[email protected]>
Co-authored-by: Bernd Verst <[email protected]>
Signed-off-by: Elena Kolevska <[email protected]>
# Conflicts:
#	dapr/clients/__init__.py
#	dapr/clients/http/client.py
#	dapr/clients/http/dapr_invocation_http_client.py
#	tests/clients/test_http_service_invocation_client.py
#	tests/clients/test_secure_http_service_invocation_client.py
elena-kolevska added a commit to elena-kolevska/python-sdk that referenced this pull request Feb 7, 2024
…structor (dapr#621)

* Fixes bug of constructor argument being used as http endpoint

Signed-off-by: Elena Kolevska <[email protected]>

* Updates tests

Signed-off-by: Elena Kolevska <[email protected]>

* Updates the docs explaining how http service invocation should be configured

Signed-off-by: Elena Kolevska <[email protected]>

* Update daprdocs/content/en/python-sdk-docs/python-client.md

Signed-off-by: Bernd Verst <[email protected]>

---------

Signed-off-by: Elena Kolevska <[email protected]>
Signed-off-by: Bernd Verst <[email protected]>
Co-authored-by: Bernd Verst <[email protected]>
Signed-off-by: Elena Kolevska <[email protected]>
# Conflicts:
#	dapr/clients/__init__.py
#	dapr/clients/http/client.py
#	dapr/clients/http/dapr_invocation_http_client.py
#	tests/clients/test_http_service_invocation_client.py
#	tests/clients/test_secure_http_service_invocation_client.py
berndverst pushed a commit that referenced this pull request Feb 9, 2024
* Fixes http endpoint being overwritten by gRPC address argument in constructor (#621)

* Fixes bug of constructor argument being used as http endpoint

Signed-off-by: Elena Kolevska <[email protected]>

* Updates tests

Signed-off-by: Elena Kolevska <[email protected]>

* Updates the docs explaining how http service invocation should be configured

Signed-off-by: Elena Kolevska <[email protected]>

* Update daprdocs/content/en/python-sdk-docs/python-client.md

Signed-off-by: Bernd Verst <[email protected]>

---------

Signed-off-by: Elena Kolevska <[email protected]>
Signed-off-by: Bernd Verst <[email protected]>
Co-authored-by: Bernd Verst <[email protected]>
Signed-off-by: Elena Kolevska <[email protected]>
# Conflicts:
#	dapr/clients/__init__.py
#	dapr/clients/http/client.py
#	dapr/clients/http/dapr_invocation_http_client.py
#	tests/clients/test_http_service_invocation_client.py
#	tests/clients/test_secure_http_service_invocation_client.py

* Runs ruff

Signed-off-by: Elena Kolevska <[email protected]>

---------

Signed-off-by: Elena Kolevska <[email protected]>
berndverst pushed a commit that referenced this pull request Feb 13, 2024
* Fixes http endpoint being overwritten by gRPC address argument in constructor (#621)

* Fixes bug of constructor argument being used as http endpoint

Signed-off-by: Elena Kolevska <[email protected]>

* Updates tests

Signed-off-by: Elena Kolevska <[email protected]>

* Updates the docs explaining how http service invocation should be configured

Signed-off-by: Elena Kolevska <[email protected]>

* Update daprdocs/content/en/python-sdk-docs/python-client.md

Signed-off-by: Bernd Verst <[email protected]>

---------

Signed-off-by: Elena Kolevska <[email protected]>
Signed-off-by: Bernd Verst <[email protected]>
Co-authored-by: Bernd Verst <[email protected]>
Signed-off-by: Elena Kolevska <[email protected]>
# Conflicts:
#	dapr/clients/__init__.py
#	dapr/clients/http/client.py
#	dapr/clients/http/dapr_invocation_http_client.py
#	tests/clients/test_http_service_invocation_client.py
#	tests/clients/test_secure_http_service_invocation_client.py

* health decorator - first commit

Signed-off-by: Elena Kolevska <[email protected]>

* Fixes tests

Signed-off-by: Elena Kolevska <[email protected]>

* Removes unused imports

Signed-off-by: Elena Kolevska <[email protected]>

* Ruff format

Signed-off-by: Elena Kolevska <[email protected]>

* Adds unit test

Signed-off-by: Elena Kolevska <[email protected]>

* Repalces wait() with @healthcheck decorator in examples

Signed-off-by: Elena Kolevska <[email protected]>

* Ruff

Signed-off-by: Elena Kolevska <[email protected]>

* Linter

Signed-off-by: Elena Kolevska <[email protected]>

* updates heathcheck decorator to use a global var

Signed-off-by: Elena Kolevska <[email protected]>

* Fixes tests

Signed-off-by: Elena Kolevska <[email protected]>

* Linter fixes

Signed-off-by: Elena Kolevska <[email protected]>

* Removes healthcheck from examples

Signed-off-by: Elena Kolevska <[email protected]>

* Ruff

Signed-off-by: Elena Kolevska <[email protected]>

* wip

Signed-off-by: Elena Kolevska <[email protected]>

* wip

Signed-off-by: Elena Kolevska <[email protected]>

* wip

Signed-off-by: Elena Kolevska <[email protected]>

* wip

Signed-off-by: Elena Kolevska <[email protected]>

* Set health timeout to 60 seconds

Signed-off-by: Elena Kolevska <[email protected]>

* wip

Signed-off-by: Elena Kolevska <[email protected]>

* Unit tests passing

Signed-off-by: Elena Kolevska <[email protected]>

* Linter

Signed-off-by: Elena Kolevska <[email protected]>

* Refactor and cleanup

Signed-off-by: Elena Kolevska <[email protected]>

* Refactors client tests for speed and readability

Signed-off-by: Elena Kolevska <[email protected]>

* Small fix

Signed-off-by: Elena Kolevska <[email protected]>

* Add tests performance improvement for actor tests too

Signed-off-by: Elena Kolevska <[email protected]>

* Cosmetic touch up

Signed-off-by: Elena Kolevska <[email protected]>

* Documents the `DAPR_HEALTH_TIMEOUT` environment variable

Signed-off-by: Elena Kolevska <[email protected]>

* make healthcheck a static method

Signed-off-by: Elena Kolevska <[email protected]>

---------

Signed-off-by: Elena Kolevska <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants